package cn.gjxblog.web.servlet.support;


import cn.gjxblog.web.servlet.config.RootConfig;
import cn.gjxblog.web.servlet.config.WebMvcConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class DispatcherServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{RootConfig.class};
    }

    protected Class<?>[] getServletConfigClasses(){
        return new Class[]{WebMvcConfig.class};
    }

    protected String[] getServletMappings(){
        return new String[]{"/"};
    }
}
